PHP: sizeof - Manual 1/ prefer the count() function instead of sizeOf() as sizeOf() is only an alias of count() and does not ... 2/ prefer the powerful forEach() function to iterate over arrays. ... Many programmers expect sizeof() to return the amount of memory allo